package com.ruoyi.msg.domain.bo;

import com.ruoyi.common.core.domain.BaseEntity;
import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 意见反馈业务对象 msg_feedback
 *
 * @author strongme
 * @date 2023-04-05
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class MsgFeedbackBo extends BaseEntity {

    /**
     * 主键
     */
    @NotNull(message = "主键不能为空", groups = {EditGroup.class})
    private Long id;

    /**
     * 指定人id
     */
    @NotNull(message = "指定人id不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long userId;

    /**
     * 内容
     */
    @NotBlank(message = "内容不能为空", groups = {AddGroup.class, EditGroup.class})
    private String content;


}
